<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('users', 'UserController');

    // 政策服务
    $router->resource('supports', 'PolicySupportController');
    $router->resource('file', 'PolicyFileController');
    $router->resource('interpretation', 'PolicyInterpretationController');

    // 金融服务
    $router->resource('news', 'FinancialNewsController');
    $router->resource('policy', 'InvestmentPolicyController');
    $router->resource('environment', 'InvestmentEnvironmentController');
    $router->resource('institution', 'FinancialInstitutionController');

    // 法律服务
    $router->resource('case', 'CaseShowController');
    $router->resource('advice', 'LegalAdviceController');
    $router->resource('lawyer', 'LawyerController');

    // 创业园区
    $router->resource('list', 'HubListController');
    $router->resource('incubated', 'IntoIncubatedEnterpriseController');
    $router->resource('hatch', 'HatchingApplicationController');

    // 培训服务
    $router->resource('online', 'OnlineClassroomController');
    $router->resource('activity', 'PopularActivityController');

    $router->resource('test', 'HandleController');

});
